#include"Shm.hpp"
#include"namedPipe.hpp"
int main ()
{
    Shm shm(gpathname,gproj_id,gCreater);
    char*addr=(char*)shm.AttachShm();
    sleep(5);
    NamePiped pipe(com_path,Creater);
    pipe.OpenForRead();
    for (int i=0;i<24;i++)
    {
        std::cout<<addr[i]<<std::endl;
        std::string s;
        pipe.ReadNamePipe(&s);
    }
    shm.DetachShm(addr);
    return 0;
}